<?php if (!defined('THINK_PATH')) exit(); echo W('Cate/Menu');?>
  <div class="container-full content-header">
    <h6 class="text-center title">欢迎来到随遇而安的博客</h6>
    <h3 class="text-center"><?php echo ($title); ?></h3>
  </div>

  <div class="container-full content-main">
    <div class="row">
      <div class="col-md-7 col-md-offset-1 articles" >
        <?php if(is_array($articles)): foreach($articles as $key=>$v): ?><article >
            <h5><a href="<?php echo U('Index/article',array('id'=>$v['id']));?>"><?php echo ($v["title"]); ?></a></h5>
            <h6><?php echo ($v["about"]); ?></h6>
            <h6 class="tabs">
              <span><i class="iconfont-15">&#xe604;</i>评论:<span class="ds-thread-count" data-thread-key="<?php echo ($title["id"]); ?>" data-count-type="comments">0</span></span>
              <span><i class="iconfont-15">&#xe605;</i>发布时间:<?php echo (date("y-m-d H:i",strtotime($v["addtime"]))); ?></span>
              <span><a href="<?php echo U('Index/article',array('id'=>$v['id']));?>">阅读全文 >>></a></span>
            </h6>
          </article><?php endforeach; endif; ?>
        <!-- 分页 -->
        <div>
          <ul class="pagination">
            <li class="previous <?php if(1 == $p): ?>disabled<?php endif; ?>" ><a <?php if(1 != $p): ?>href="<?php echo U('',array('cid'=>I('get.cid'),'p'=>$p-1,'s'=>I('get.s')),'html');?>"<?php endif; ?>  class="fui-arrow-left"></a></li>
            <?php $__FOR_START_518449351__=1;$__FOR_END_518449351__=$page+1;for($i=$__FOR_START_518449351__;$i < $__FOR_END_518449351__;$i+=1){ ?><li  class="<?php if($i == $p): ?>active<?php endif; ?>"><a href="<?php echo U('',array('cid'=>I('get.cid'),'p'=>$i,'s'=>I('get.s')),'html');?>"><?php echo ($i); ?></a></li><?php } ?>
            <li class="next previous <?php if($page == $p): ?>disabled<?php endif; ?>"><a href="<?php echo U('',array('cid'=>I('get.cid'),'p'=>$p+1,'s'=>I('get.s')),'html');?>" class="fui-arrow-right"></a></li>
          </ul>
        </div>
        <!-- 结束分页 -->
      </div>
      <div class=" col-md-3 slidebar">
	
       <iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=100% height=86 src="http://music.163.com/outchain/player?type=2&id=424262521&auto=1&height=66"></iframe>
        <div class="panel-group" role="tablist">
          <!-- <div class="panel panel-default"> -->
            <div class="panel-heading list-group-item"  role="tab" id="collapseListGroupHeading1">
              <h4 class="panel-title">
                <a class="" role="button" data-toggle="collapse" href="#collapseListGroup1" aria-expanded="true" aria-controls="collapseListGroup1">
                  最新文章
                </a>
              </h4>
            </div>
            <div id="collapseListGroup1" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="collapseListGroupHeading1" aria-expanded="true">
              <?php echo W('Cate/newest');?>
            </div>
          <!-- </div> -->
        </div>
        <div class="panel-group" role="tablist">
          <!-- <div class="panel panel-default"> -->
            <div class="panel-heading list-group-item"  role="tab" id="collapseListGroupHeading2">
              <h4 class="panel-title">
                <a class="" role="button" data-toggle="collapse" href="#collapseListGroup2" aria-expanded="true" aria-controls="collapseListGroup2">
                  热评文章
                </a>
              </h4>
            </div>
            <div id="collapseListGroup2" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="collapseListGroupHeading2" aria-expanded="true">
              <ul class="list-group">
                <!-- <li class="list-group-item">暂无</li> -->
                <div class="ds-top-threads" data-range="daily" data-num-items="5"></div>
              <!-- 多说热评文章 end -->

              </ul>
            </div>
          <!-- </div> -->
        </div>
      </div>
    </div>


  </div>
<div class="container-full content-footer">
  <div class="row col-md-offset-1">
    <div class="col-md-8">
      <ul class="list-inline">
        <li ><a href="<?php echo U('Index/about');?>">关于我</a></li>
      <li><a href="<?php echo U('Index/msgpad');?>">bug反馈</a></li>
      </ul>
      <p class="info">Copyrights © 2016 All Rights Reserved by MUZI | 2015-2016</p>
    </div>
    <div class="col-md-4">
      <ul class="list-inline">
        <li >
          <a href=""><i class="iconfont">&#xe600;</i></a>
        </li>
        <li>
          <a href="//weibo.com/2353510277/profile?rightmod=1&wvr=6&mod=personinfo" target="_blank"><i class="iconfont">&#xe601;</i></a>
        </li>
        <li>
          <a href=""><i class="iconfont">&#xe602;</i></a>
        </li>
        <li>
          <a href="https://git.oschina.net/crazy_boy" target="_blank"><i class="iconfont">&#xe603;</i></a>
        </li>
      </ul>
    </div>
  </div>
</div>
<script src="/Public/js/vendor/jquery.min.js" charset="utf-8"></script>
<script src="/Public/js/flat-ui.min.js" charset="utf-8"></script>
<script src="/Public/js/app.js" charset="utf-8"></script>
<script src="//cdn.bootcss.com/jquery_lazyload/1.9.7/jquery.lazyload.min.js"></script>
<script>
  $('#search button').click(function(){
    window.location.href="<?php echo U('Index/search');?>/s/"+$('#search input').val();
  })
$(function() {
  $("img.lazy").lazyload({
    effect : "fadeIn"
    });
});
</script>
</body>
</html>